package jsyf.oa.entity.business;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "t_apl_business_history_audit", schema = "oa", catalog = "")
public class BusinessReceiverEntity extends BaseEntity {

    private String mainId;
    private String auditId;
    private String auditName;
    private Date auditTime;
    private String auditAdvise;
    private String auditFlag;
    private Integer auditType;

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getAuditId() {
        return auditId;
    }

    public void setAuditId(String auditId) {
        this.auditId = auditId;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditAdvise() {
        return auditAdvise;
    }

    public void setAuditAdvise(String auditAdvise) {
        this.auditAdvise = auditAdvise;
    }

    public String getAuditFlag() {
        return auditFlag;
    }

    public void setAuditFlag(String auditFlag) {
        this.auditFlag = auditFlag;
    }

    public Integer getAuditType() {
        return auditType;
    }

    public void setAuditType(Integer auditType) {
        this.auditType = auditType;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("MAIN_ID", getMainId());
        obj.put("AUDIT_ID", getAuditId());
        obj.put("AUDIT_NAME", getAuditName());
        obj.put("AUDIT_TIME", getAuditTime());
        obj.put("AUDIT_ADVISE", getAuditAdvise());
        obj.put("AUDIT_FLAG", getAuditFlag());
        obj.put("AUDIT_TYPE", getAuditType());

        return obj;
    }

    @Override
    public String getTableName() {
        return "t_apl_business_history_audit";
    }


    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("MAIN_ID", "mainId");
        obj.put("AUDIT_ID", "auditId");
        obj.put("AUDIT_NAME", "auditName");
        obj.put("AUDIT_TIME", "auditTime");
        obj.put("AUDIT_ADVISE", "auditAdvise");
        obj.put("AUDIT_FLAG", "auditFlag");
        obj.put("AUDIT_TYPE", "auditType");
        return obj;
    }


}
